package com.idanchuang.count.service.api.request.command;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author Richard_yyf
 * @version 1.0 2021/9/22
 */
public class CountBatchResetCommand {


    /**
     * 业务场景标识
     * 服务接入时，由计数服务根据计数业务场景分配
     * 要在计数服务注册过的bizCode，否则调用会失败
     */
    @NotNull
    private String bizCode;

    /**
     * 需要重置的计数器
     * batch size <= 1000
     */
    @NotEmpty
    private List<ResetItem> items;

    public CountBatchResetCommand() {
    }

    public String getBizCode() {
        return bizCode;
    }

    public void setBizCode(String bizCode) {
        this.bizCode = bizCode;
    }

    public List<ResetItem> getItems() {
        return items;
    }

    public void setItems(List<ResetItem> items) {
        this.items = items;
    }

    @Override
    public String toString() {
        return "CountBatchResetCommand{" +
                "bizCode='" + bizCode + '\'' +
                ", items=" + items +
                '}';
    }
}
